#ifndef __NASSERVER_H__
#define __NASSERVER_H__

#include "../main.h"

void read_cb(poll_event_t *poll_event, poll_event_element_t *node, struct epoll_event ev);

void printf_msg(char *data, int length);

void close_cb(poll_event_t *poll_event, poll_event_element_t *node, struct epoll_event ev);

void accept_cb(poll_event_t *poll_event, poll_event_element_t *node, struct epoll_event ev);

int timeout_cb(poll_event_t *poll_event);

void *testServer();

int set_rcv_BufSize(int sockfd);

int get_rcv_BufSize(int sockfd);

int get_send_BufSize(int sockfd);

int set_send_BufSize(int sockfd);

void set_fd_noblock(int fd);

void set_reuseport(int sockfd);

#endif